<!-- 性状统计记录 -->
<template>
    <!-- 筛选条件 -->
    <el-form :inline="true" :model="formInline" class="demo-form-inline">
        <el-form-item label="时间">
            <el-date-picker
                v-model="formInline.date"
                type="daterange"
                range-separator="至"
                start-placeholder="开始时间"
                end-placeholder="结束时间"
                value-format="YYYY-MM-DD"
            />
        </el-form-item>
        <el-form-item>
            <el-button type="primary" icon="Download">导出</el-button>
        </el-form-item>
    </el-form>

    <!-- 表格 -->
    <el-table :data="tableData" stripe border style="width: 100%;">
        <el-table-column prop="cattleNum" label="断奶日期" />
        <el-table-column prop="cattleNum" label="断奶重" />
        <el-table-column prop="cattleNum" label="出生胎次" />
        <el-table-column prop="cattleNum" label="出生左乳头数" />
        <el-table-column prop="cattleNum" label="出生右乳头数" />
        <el-table-column prop="cattleNum" label="结测背瞟厚(A1)" />
        <el-table-column prop="cattleNum" label="结测背瞟厚(A2)" />
        <el-table-column prop="cattleNum" label="结测背瞟厚(A)" />
        <el-table-column prop="cattleNum" label="结测背瞟厚(B)" />
        <el-table-column label="操作" width="180">
            <template #default="scope">
                <el-button type="success" icon="Edit" size="small">编辑</el-button>
                <el-button type="danger" icon="Delete" size="small">删除</el-button>
            </template>
        </el-table-column>
    </el-table>
</template>

<script setup>
import { reactive } from 'vue'

// 表单收集
const formInline = reactive({
    date: ''
})

// 表格数据
const tableData = [
    { cattleNum: '0' },
    { cattleNum: '0' },
    { cattleNum: '0' }
]
</script>

<style scoped lang="scss"></style>